import Mock from 'mockjs'

const data = Mock.mock({
  'list|10-20': [{
    'id': '@id',
    'title': "@ctitle",
    'url': '@image(100x100, @color)',
    'desc': '@cword(10,20)'
  }]
})


Mock.mock('/api/list', () => {
  return {
    code: 200,
    data: data.list
  }
})